#include <iostream>
using namespace std;

class Time{
    int hour;
    int minutes;
    int seconds;
public:
    void setTime(int hour,int minutes,int seconds){
        this->hour=hour;
        this->minutes=minutes;
        this->seconds=seconds;
    }
    void display(){
        cout<<hour<<" : "<<minutes<<" : "<<seconds<<endl;
    }
};

int main(){
    Time time=Time();
    int hour,minutes,seconds;
    cout<<"请输入时间（时 分 秒）"<<endl;
    cin>>hour>>minutes>>seconds;
    time.setTime(hour,minutes,seconds);
    time.display();
    return 0;
}